<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后端管理页面</title>
    <link rel="stylesheet" href="/static/css/layui.css">
    <link rel="stylesheet" href="/static/css/admin.css">
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-header">功能列表</div>
            <div class="layui-card-body">
                <div class="layui-btn-container">
                    <a href="/" target="_blank" class="layui-btn layui-btn-primary">进入搜索</a>
                    <a href="/index/admin/in.html" target="_blank" class="layui-btn layui-btn-primary">添加文档</a>
                    <a href="/index/admin/up.html" target="_blank" class="layui-btn layui-btn-primary">更新文档</a>
                    <a href="/index/admin/del.html" target="_blank" class="layui-btn layui-btn-primary">删除文档</a>
                    <a href="/index/admin/clear.html" target="_blank"
                       class="layui-btn layui-btn-primary layui-btn-danger">清空索引</a>
                    <a href="/index/admin/rebuild.html" target="_blank"
                       class="layui-btn layui-btn-primary layui-btn-danger">平滑重建索引</a>
                    <a href="/index/admin/hot.html" target="_blank" class="layui-btn layui-btn-primary">获取热门搜索词</a>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/layui.js"></script>
<script>
    layui.use(['layer', 'jquery'], function () {
        var layer = layui.layer, $ = layui.jquery;
        $(".layui-btn-danger").click(function () {
            layer.confirm('确定执行吗？', {
                btn: ['确定', '取消'] //按钮
            }, function () {
                return true;
            }, function () {
                layer.msg('已取消');
                return false;
            });
        })
    });
</script>
</body>
</html>